<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
       <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 

<style type="text/css">
	p{
		font:bold;
		font-size: 30px;
	}
</style>
<br><br><br>
<center>	
<p><font color="darkblue">전체회원 거래내역 조회</font></p>

    <table border="2">
       <thead>
       		
      	 	<tr bgcolor="pink">
      	 		<th width="90">거래번호</th>
      	 		<th width="150">거래제목</th>
      	 		<th width="100">상품명</th>
      	 		<th width="100">가격</th>
      	 		<th width="100">판매자</th>
      	 		<th width="100">구매자</th>
      	 		<th width="200">거래시각</th>
      	 	</tr>
       </thead>
       <c:forEach items="${requestScope.lvo.list}" var="list">
	        <tr align="center">
	        	<td>${list.tradeHistoryNo }</td>
	        	<td><a href="${initParam.root}sell.do?command=showContent&sellNo=${list.svo.sellNo}">${list.svo.title }</a></td>
	        	<td>${list.svo.productName }</td>
	        	<td>${list.svo.productPrice }원</td>
	        	<td>${list.buyer }</td>
	        	<td>${list.seller }</td>
	        	<td>${list.timeTraded }</td>
	        </tr>	
       </c:forEach>
	</table>
	<br>
	<c:set value="${requestScope.lvo.pagingBean }" var="pb"></c:set>
		<c:if test="${pb.previousPageGroup }">
			<a href="${initParam.root }admin.do?command=getAllTradedHistory&page=${pb.startPageOfPageGroup-1}"><img src="${initParam.root}img/left_arrow_btn.gif"></a>
		</c:if>
	<c:forEach var="i" begin="${pb.startPageOfPageGroup }" end="${pb.endPageOfPageGroup}">
		<c:choose>
			<c:when test="${pb.nowPage!=i}">
				<a href="${initParam.root }admin.do?command=getAllTradedHistory&page=${i}">${i}</a>&nbsp;
			</c:when>
			<c:otherwise>
				<font color="red">${i}</font>&nbsp;
			</c:otherwise>
		</c:choose>
	</c:forEach>
	<c:if test="${pb.nextPageGroup }">
		<a href="${initParam.root }admin.do?command=getAllTradedHistory&page=${pb.endPageOfPageGroup+1}">
			<img src="${initParam.root}img/right_arrow_btn.gif">
		</a>
	</c:if>
</center>

